<template>
  <view>
    <web-view :src="url"></web-view>
  </view>
</template>

<script setup>
import { onLoad } from "@dcloudio/uni-app";
import { ref } from "vue";
const url = ref();
let titleStr = "";
onLoad((e) => {
  // 获取传递过来的链接
  url.value = JSON.parse(decodeURIComponent(e.url));
  console.log("H5访问地址：" + url.value);
  if (e.titleStr != "") {
    titleStr = e.titleStr;
    uni.setNavigationBarTitle({
      title: e.titleStr,
    });
  }
});
</script>

<style>
</style>
